package com.lwlk.zdk.model.pw;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class pwVehiclePathExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public pwVehiclePathExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("\" id\" is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("\" id\" is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("\" id\" =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("\" id\" <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("\" id\" >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("\" id\" >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("\" id\" <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("\" id\" <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("\" id\" in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("\" id\" not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("\" id\" between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("\" id\" not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPathNameIsNull() {
            addCriterion("path_name is null");
            return (Criteria) this;
        }

        public Criteria andPathNameIsNotNull() {
            addCriterion("path_name is not null");
            return (Criteria) this;
        }

        public Criteria andPathNameEqualTo(String value) {
            addCriterion("path_name =", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameNotEqualTo(String value) {
            addCriterion("path_name <>", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameGreaterThan(String value) {
            addCriterion("path_name >", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameGreaterThanOrEqualTo(String value) {
            addCriterion("path_name >=", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameLessThan(String value) {
            addCriterion("path_name <", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameLessThanOrEqualTo(String value) {
            addCriterion("path_name <=", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameLike(String value) {
            addCriterion("path_name like", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameNotLike(String value) {
            addCriterion("path_name not like", value, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameIn(List<String> values) {
            addCriterion("path_name in", values, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameNotIn(List<String> values) {
            addCriterion("path_name not in", values, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameBetween(String value1, String value2) {
            addCriterion("path_name between", value1, value2, "pathName");
            return (Criteria) this;
        }

        public Criteria andPathNameNotBetween(String value1, String value2) {
            addCriterion("path_name not between", value1, value2, "pathName");
            return (Criteria) this;
        }

        public Criteria andOverCapacityIsNull() {
            addCriterion("over_capacity is null");
            return (Criteria) this;
        }

        public Criteria andOverCapacityIsNotNull() {
            addCriterion("over_capacity is not null");
            return (Criteria) this;
        }

        public Criteria andOverCapacityEqualTo(Integer value) {
            addCriterion("over_capacity =", value, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityNotEqualTo(Integer value) {
            addCriterion("over_capacity <>", value, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityGreaterThan(Integer value) {
            addCriterion("over_capacity >", value, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityGreaterThanOrEqualTo(Integer value) {
            addCriterion("over_capacity >=", value, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityLessThan(Integer value) {
            addCriterion("over_capacity <", value, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityLessThanOrEqualTo(Integer value) {
            addCriterion("over_capacity <=", value, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityIn(List<Integer> values) {
            addCriterion("over_capacity in", values, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityNotIn(List<Integer> values) {
            addCriterion("over_capacity not in", values, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityBetween(Integer value1, Integer value2) {
            addCriterion("over_capacity between", value1, value2, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andOverCapacityNotBetween(Integer value1, Integer value2) {
            addCriterion("over_capacity not between", value1, value2, "overCapacity");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeIsNull() {
            addCriterion("effective_time is null");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeIsNotNull() {
            addCriterion("effective_time is not null");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeEqualTo(Date value) {
            addCriterionForJDBCDate("effective_time =", value, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("effective_time <>", value, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("effective_time >", value, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("effective_time >=", value, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeLessThan(Date value) {
            addCriterionForJDBCDate("effective_time <", value, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("effective_time <=", value, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeIn(List<Date> values) {
            addCriterionForJDBCDate("effective_time in", values, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("effective_time not in", values, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("effective_time between", value1, value2, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andEffectiveTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("effective_time not between", value1, value2, "effectiveTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeIsNull() {
            addCriterion("failure_time is null");
            return (Criteria) this;
        }

        public Criteria andFailureTimeIsNotNull() {
            addCriterion("failure_time is not null");
            return (Criteria) this;
        }

        public Criteria andFailureTimeEqualTo(Date value) {
            addCriterionForJDBCDate("failure_time =", value, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("failure_time <>", value, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("failure_time >", value, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("failure_time >=", value, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeLessThan(Date value) {
            addCriterionForJDBCDate("failure_time <", value, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("failure_time <=", value, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeIn(List<Date> values) {
            addCriterionForJDBCDate("failure_time in", values, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("failure_time not in", values, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("failure_time between", value1, value2, "failureTime");
            return (Criteria) this;
        }

        public Criteria andFailureTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("failure_time not between", value1, value2, "failureTime");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmIsNull() {
            addCriterion("overspeed_alarm is null");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmIsNotNull() {
            addCriterion("overspeed_alarm is not null");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmEqualTo(String value) {
            addCriterion("overspeed_alarm =", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmNotEqualTo(String value) {
            addCriterion("overspeed_alarm <>", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmGreaterThan(String value) {
            addCriterion("overspeed_alarm >", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmGreaterThanOrEqualTo(String value) {
            addCriterion("overspeed_alarm >=", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmLessThan(String value) {
            addCriterion("overspeed_alarm <", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmLessThanOrEqualTo(String value) {
            addCriterion("overspeed_alarm <=", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmLike(String value) {
            addCriterion("overspeed_alarm like", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmNotLike(String value) {
            addCriterion("overspeed_alarm not like", value, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmIn(List<String> values) {
            addCriterion("overspeed_alarm in", values, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmNotIn(List<String> values) {
            addCriterion("overspeed_alarm not in", values, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmBetween(String value1, String value2) {
            addCriterion("overspeed_alarm between", value1, value2, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andOverspeedAlarmNotBetween(String value1, String value2) {
            addCriterion("overspeed_alarm not between", value1, value2, "overspeedAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmIsNull() {
            addCriterion("enter_into_alarm is null");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmIsNotNull() {
            addCriterion("enter_into_alarm is not null");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmEqualTo(String value) {
            addCriterion("enter_into_alarm =", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmNotEqualTo(String value) {
            addCriterion("enter_into_alarm <>", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmGreaterThan(String value) {
            addCriterion("enter_into_alarm >", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmGreaterThanOrEqualTo(String value) {
            addCriterion("enter_into_alarm >=", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmLessThan(String value) {
            addCriterion("enter_into_alarm <", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmLessThanOrEqualTo(String value) {
            addCriterion("enter_into_alarm <=", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmLike(String value) {
            addCriterion("enter_into_alarm like", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmNotLike(String value) {
            addCriterion("enter_into_alarm not like", value, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmIn(List<String> values) {
            addCriterion("enter_into_alarm in", values, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmNotIn(List<String> values) {
            addCriterion("enter_into_alarm not in", values, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmBetween(String value1, String value2) {
            addCriterion("enter_into_alarm between", value1, value2, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andEnterIntoAlarmNotBetween(String value1, String value2) {
            addCriterion("enter_into_alarm not between", value1, value2, "enterIntoAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmIsNull() {
            addCriterion("The_domain_alarm is null");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmIsNotNull() {
            addCriterion("The_domain_alarm is not null");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmEqualTo(String value) {
            addCriterion("The_domain_alarm =", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmNotEqualTo(String value) {
            addCriterion("The_domain_alarm <>", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmGreaterThan(String value) {
            addCriterion("The_domain_alarm >", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmGreaterThanOrEqualTo(String value) {
            addCriterion("The_domain_alarm >=", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmLessThan(String value) {
            addCriterion("The_domain_alarm <", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmLessThanOrEqualTo(String value) {
            addCriterion("The_domain_alarm <=", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmLike(String value) {
            addCriterion("The_domain_alarm like", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmNotLike(String value) {
            addCriterion("The_domain_alarm not like", value, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmIn(List<String> values) {
            addCriterion("The_domain_alarm in", values, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmNotIn(List<String> values) {
            addCriterion("The_domain_alarm not in", values, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmBetween(String value1, String value2) {
            addCriterion("The_domain_alarm between", value1, value2, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andTheDomainAlarmNotBetween(String value1, String value2) {
            addCriterion("The_domain_alarm not between", value1, value2, "theDomainAlarm");
            return (Criteria) this;
        }

        public Criteria andRateLimitingIsNull() {
            addCriterion("rate_limiting is null");
            return (Criteria) this;
        }

        public Criteria andRateLimitingIsNotNull() {
            addCriterion("rate_limiting is not null");
            return (Criteria) this;
        }

        public Criteria andRateLimitingEqualTo(Double value) {
            addCriterion("rate_limiting =", value, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingNotEqualTo(Double value) {
            addCriterion("rate_limiting <>", value, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingGreaterThan(Double value) {
            addCriterion("rate_limiting >", value, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingGreaterThanOrEqualTo(Double value) {
            addCriterion("rate_limiting >=", value, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingLessThan(Double value) {
            addCriterion("rate_limiting <", value, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingLessThanOrEqualTo(Double value) {
            addCriterion("rate_limiting <=", value, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingIn(List<Double> values) {
            addCriterion("rate_limiting in", values, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingNotIn(List<Double> values) {
            addCriterion("rate_limiting not in", values, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingBetween(Double value1, Double value2) {
            addCriterion("rate_limiting between", value1, value2, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andRateLimitingNotBetween(Double value1, Double value2) {
            addCriterion("rate_limiting not between", value1, value2, "rateLimiting");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNull() {
            addCriterion("vehicle_id is null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNotNull() {
            addCriterion("vehicle_id is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdEqualTo(String value) {
            addCriterion("vehicle_id =", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotEqualTo(String value) {
            addCriterion("vehicle_id <>", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThan(String value) {
            addCriterion("vehicle_id >", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThanOrEqualTo(String value) {
            addCriterion("vehicle_id >=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThan(String value) {
            addCriterion("vehicle_id <", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThanOrEqualTo(String value) {
            addCriterion("vehicle_id <=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLike(String value) {
            addCriterion("vehicle_id like", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotLike(String value) {
            addCriterion("vehicle_id not like", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIn(List<String> values) {
            addCriterion("vehicle_id in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotIn(List<String> values) {
            addCriterion("vehicle_id not in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdBetween(String value1, String value2) {
            addCriterion("vehicle_id between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotBetween(String value1, String value2) {
            addCriterion("vehicle_id not between", value1, value2, "vehicleId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}